<?
/**
 * Media database object
 */
class MediaDbo extends HistoryTimelineDbo {

/**
 * constructor - define object property -> table mappings
 */
public function __construct() {
	// parent
	parent::__construct();
	// table name
	$this->setDatabaseTable('media_ids');
	// object properties
	$this->propertyAdd('DisplayOrder');
	$this->propertyAdd('Enabled');
	$this->propertyAdd('EventId');
	$this->propertyAdd('Id');
	$this->propertyAdd('Media');
	$this->propertyAdd('SourceId');
	$this->propertyAdd('TypeId');
	// Set id property
	$this->setIdProperty('Id');
	// Friendly Descriptions
	// Date properties
	// Numeric properties
	$this->setPropertyIsNumeric('DisplayOrder');
	$this->setPropertyIsNumeric('Enabled');
	$this->setPropertyIsNumeric('EventId');
	$this->setPropertyIsNumeric('Id');
	$this->setPropertyIsNumeric('SourceId');
	// Set property lengths
	$this->setPropertyMaxLength('DisplayOrder', 10);
	$this->setPropertyMaxLength('Enabled',      1);
	$this->setPropertyMaxLength('EventId',      10);
	$this->setPropertyMaxLength('Id',           10);
	$this->setPropertyMaxLength('Media',        16777215);
	$this->setPropertyMaxLength('SourceId',     10);
	$this->setPropertyMaxLength('TypeId',       10);
	}
}
?>
